///////////////////////////////////////////////
///      Product Name: WordQuicker          ///
/// Copyright (c)2007, Marstone Studio      ///
///           Author: marstone              ///
///        Web Site: marstone.net           ///
///      Mail/MSN: marstone@163.com         ///
///         Created: 2007.10.02             ///
///      Last Modified: 2007.10.02          ///
///////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using Word = Microsoft.Office.Interop.Word;

namespace Studio.Windows.WordQuicker
{
    public delegate void WQApplicationQuitEventHandler();

    public interface WQApplication
    {
        /// <summary>
        /// Open a word document by file name
        /// </summary>
        WQDocument OpenDocument(string FileName);

        /// <summary>
        /// Close & Save by parameter : Save
        /// </summary>
        void CloseDocument(bool Save);
        
        /// <summary>
        /// Quit application & Save by parameter : Save
        /// </summary>
        void QuitApplication(bool Save);

        /// <summary>
        /// Quit only, without save
        /// </summary>
        void QuitApplication();

        event WQApplicationQuitEventHandler ApplicationQuit;

    }
}
